GNOME_SETUP_DISPLAY is only necessary when using xwayland on demand,
which is only supported on systemd, in which case you should consider
using the user service provided by ibus.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2345>
_spawn(extraArgs = []) {
try {
let cmdLine = ['ibus-daemon', '--panel', 'disable', ...extraArgs];
- // Forward the right X11 Display for ibus-x11
- let display = GLib.getenv('GNOME_SETUP_DISPLAY');
let env = [];
- if (display)
- env.push('DISPLAY=%s'.format(display));
GLib.spawn_async(
null, cmdLine, env,
GLib.SpawnFlags.SEARCH_PATH,